<template>
  <!-- 评估模型维护 -->
  <div class="app-container2 pinggumoxingweihu">
    <div class="right-box">
      <div class="modal-search-box">
        <div class="top">
          <div class="left">
            <div class="form-item">
              <el-button class="js_common_btn">算法包上传</el-button>
            </div>
            <div class="form-item">
              <el-button class="js_common_btn">算法包替换</el-button>
            </div>
            <div class="form-item form-checkBox">
              <div class="label">模型类型：</div>
              <el-select
                class="js_common_select"
                v-model="moxingTypeVal"
                placeholder="请选择"
                :popper-append-to-body="false"
              >
                <el-option
                  v-for="item in moxingOptions"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </div>
          </div>

          <div>
            <el-button class="js_common_btn">模型算法查询</el-button>
            <el-button class="js_common_btn">扩展算法生效</el-button>
          </div>
        </div>
      </div>
      <div class="right_main">
        <div class="right_main_bottom">
          <el-table
            class="jk_common_table003"
            :data="tableData"
            height="style"
            border
            style="width: 100%; height: 100%"
          >
            <el-table-column type="selection" width="55"> </el-table-column>
            <el-table-column prop="id" label="序号" width="180" align="center">
            </el-table-column>
            <el-table-column
              prop="name"
              label="算法包名称"
              width="180"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="desc" label="算法包描述" align="center">
            </el-table-column>
            <el-table-column prop="url" label="保存路径" align="center">
            </el-table-column>
            <el-table-column prop="time" label="修改日期" align="center">
            </el-table-column>
            <el-table-column prop="system" label="版本信息" align="center">
            </el-table-column>
            <el-table-column prop="type" label="算法包类型" align="center">
            </el-table-column>
            <el-table-column prop="status" label="启用状态" align="center">
            </el-table-column>
            <el-table-column prop="operate" label="操作" align="center">
              <template>
                <el-button type="text" size="small">更新</el-button>
                <el-button type="text" size="small">启用</el-button>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      moxingTypeVal: "",
      moxingOptions: [
        {
          value: "选项1",
          label: "类型1",
        },
        {
          value: "选项2",
          label: "类型2",
        },
        {
          value: "选项3",
          label: "类型3",
        },
      ],
      tableData: [
        {
          id: "1",
          name: "D2111",
          desc: "用来检测健康度的算法",
          url: "192.168.11.0",
          time: "2022-2-12 10:30:00",
          system: "1.0",
          type: "包类型1",
          status: "启用",
        },
      ],
      refrshCheck: false,
    };
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.pinggumoxingweihu {
  width: 100%;
  display: flex;
  ::v-deep .colorStyle {
    span {
      color: #ccc !important;
    }
  }
  .right-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #0c1e3a, #163368);
    box-sizing: border-box;
    border: 1px solid #2f4f77;
    .modal-search-box {
      flex: 0 0 auto;
      padding-top: 18px;
      margin-bottom: 18px;
      .top {
        display: flex;
        justify-content: space-between;
        padding: 0 23px;
        .left {
          display: flex;
          .form-item {
            display: flex;
            align-items: center;
            margin-right: 15px;
            color: #fff;
            &.select-box {
              width: 300px;
            }
            &.time-box {
              width: 300px;
            }
            .label {
              color: #cbcbcb;
              flex-shrink: 0;
              font-size: 14px;
              margin-right: 3px;
            }
          }
          .form-checkBox {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            margin-left: 30px;
            .form-check {
              margin-right: 10px;
              margin-top: 2px;
            }
          }
        }
      }
    }
    .cengji-chart-box {
      width: 100%;
      height: 220px;
    }
    .right_main {
      flex: 1 1 auto;
      width: 100%;
      height: 0;
      display: flex;
      flex-direction: column;
      .right_main_bottom {
        flex: 1 1 auto;
        width: 100%;
        height: 0;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
      }
      .common_title_wrap {
        flex: 0 0 auto;
        width: 100%;
        height: 62px;
        background: linear-gradient(to bottom, #134183, #113b78);
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        padding: 0 20px;
        .common_title_btn {
          width: 160px;
          text-align: center;
          font-size: 20px;
          height: 32px;
          line-height: 32px;
          color: #ccc;
          // background: linear-gradient(to right, #247ab7, #279cce, #247ab7);
          background: linear-gradient(to right, #1f589e, #2384b5, #1f589e);
          cursor: pointer;
          &:hover {
            opacity: 0.9;
          }
        }
        .common_title_btn_right {
          width: 160px;
          text-align: center;
          font-size: 20px;
          height: 32px;
          line-height: 32px;
          color: #ccc;
          background: linear-gradient(to right, #1f589e, #2384b5, #1f589e);
          // background: linear-gradient(to right, #247ab7, #279cce, #247ab7);
          cursor: pointer;
          &:hover {
            opacity: 0.9;
          }
        }

        .common_title_other {
          display: flex;
          align-items: center;
          .other_search_wrap {
            display: flex;
            align-items: center;
            margin-right: 100px;
            .search_name {
              color: #ccc;
              font-size: 20px;
              margin-right: 8px;
            }
          }
        }
      }
      .common_main_scrollbar_content {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 20px;
        font-size: 20px;
        color: #ccc;
        line-height: 32px;
        background: linear-gradient(to bottom, #12315e, #154173);
      }
      .duizhanbiao_table {
        width: 100%;
        height: 100%;
        .table_checkout_box {
          display: flex;
          align-items: center;
          justify-content: center;
          .icon {
            font-weight: 700;
            font-size: 18px;
          }
        }
      }
    }
  }
}
</style>
